package com.xebia.pomodoro.event
{
	import com.xebia.pomodoro.messages.P2PMessage;

	import flash.events.Event;

	public class SendMessageToPeerUsingGroupArressEvent extends Event
	{
		public static const SEND_MESSAGE_TO_PEER:String = "sendMessageToPeerUsingGroupAddress";

		public var message:P2PMessage;

		public var groupAddress:String;

		public function SendMessageToPeerUsingGroupArressEvent(message:P2PMessage, peerID:String, bubbles:Boolean = true, cancelable:Boolean = false)
		{
			super(SEND_MESSAGE_TO_PEER, bubbles, cancelable);
			this.message = message;
			this.groupAddress = peerID;
		}
	}
}
